import { GButton } from "../../../../../../com/mui/controls/GButton";
import { HTMLUtil } from "../../../../../../com/gengine/utils/HTMLUtil";
import { Language } from "../../../../../../extend/language/Language";
type int = number;
//class TrackNameOpenBtn
    
    export  class TrackNameOpenBtn /* flash.display.Sprite */
    {
        constructor()
        {
            
            buttonMode = true;
            this._openBtn = new GButton();
            this._openBtn.label = "";
            this._openBtn.styleName = "SubBtn3";
            this._openBtn.setSize(13, 13);
            this._openBtn.toolTipData = HTMLUtil.addColor(Language.getString(20702), "#ffffff");
            this._closeBtn = new GButton();
            this._closeBtn.label = "";
            this._closeBtn.styleName = "SupBtn3";
            this._closeBtn.setSize(13, 13);
            this._closeBtn.toolTipData = HTMLUtil.addColor(Language.getString(20703), "#ffffff");
            this.open();
            return;
        }

        public open(): void
        {
            if (this._closeBtn.parent) 
            {
                removeChild(this._closeBtn);
            }
            if (!this._openBtn.parent) 
            {
                addChild(this._openBtn);
            }
            this._status = -1;
            return;
        }

        public close(): void
        {
            if (this._openBtn.parent) 
            {
                removeChild(this._openBtn);
            }
            if (!this._closeBtn.parent) 
            {
                addChild(this._closeBtn);
            }
            this._status = 1;
            return;
        }

        public get isClose(): Boolean
        {
            return this._status == 1;
        }

        public /* override */ set width(arg1: number)
        {
            super.width = arg1;
            this._closeBtn.width = arg1;
            this._openBtn.width = arg1;
            return;
        }

        public /* override */ set height(arg1: number)
        {
            super.height = arg1;
            this._closeBtn.height = arg1;
            this._openBtn.height = arg1;
            return;
        }

        /* internal */ /* var */_openBtn: GButton;

        /* internal */ /* var */_closeBtn: GButton;

        /* internal */ /* var */_status: int;
    }
